package com.jv.spring.autowiredproperties;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@ComponentScan("com.jv.spring.autowiredproperties.scan")
@Configuration
@PropertySource("classpath:au.properties")
public class SpringAppConfigOverride {
	/*
		嵌套类会先于主类被解析，因此嵌套类的配置会先处理，可能也被干扰，比如属性设置被覆盖
	 */
	@Component
	@PropertySource("classpath:au1.properties")
	class ConfigNested{
	}
}
